package com.yanjiali.feign;

import com.yanjiali.config.feign.OAuth2FeignConfig;
import com.yanjiali.model.R;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Package: controller
 * @Author: yanjiali
 * @Created: 2025/4/18 22:12
 */
@FeignClient(name = "searchEngine-service", path = "/v1/searchEngines", configuration = OAuth2FeignConfig.class)
public interface SearchEngineServiceFeign {

    @GetMapping("/removeData")
    @ApiOperation("移除对应索引库中对应数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "对应文档在索引库中的id")
    })
    R removeData(@RequestParam String id);
}